package chapter10.section6;

//程序10-9：一个实现了实例化接口的Account类
import java.io.Serializable;

public class Account implements Serializable {
	private static final long serialVersionUID = 3018435378167716657L;
	private String id; // 用户唯一的id
	private String name;// 用户名称
	private int balance;// 当前余额

	public Account(String id, String name, int balance) {
		super();
		this.id = id;
		this.name = name;
		this.balance = balance;
	}

	// 这里省略了每个属性的getter和setter方法，请创建时自行添加。
	@Override
	public String toString() {
		return "Account[name:" + name + ",balance:" + balance + "]";
	}
}
